package com.mall.bean;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrder_codeIsNull() {
            addCriterion("order_code is null");
            return (Criteria) this;
        }

        public Criteria andOrder_codeIsNotNull() {
            addCriterion("order_code is not null");
            return (Criteria) this;
        }

        public Criteria andOrder_codeEqualTo(String value) {
            addCriterion("order_code =", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotEqualTo(String value) {
            addCriterion("order_code <>", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeGreaterThan(String value) {
            addCriterion("order_code >", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeGreaterThanOrEqualTo(String value) {
            addCriterion("order_code >=", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeLessThan(String value) {
            addCriterion("order_code <", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeLessThanOrEqualTo(String value) {
            addCriterion("order_code <=", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeLike(String value) {
            addCriterion("order_code like", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotLike(String value) {
            addCriterion("order_code not like", value, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeIn(List<String> values) {
            addCriterion("order_code in", values, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotIn(List<String> values) {
            addCriterion("order_code not in", values, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeBetween(String value1, String value2) {
            addCriterion("order_code between", value1, value2, "order_code");
            return (Criteria) this;
        }

        public Criteria andOrder_codeNotBetween(String value1, String value2) {
            addCriterion("order_code not between", value1, value2, "order_code");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyIsNull() {
            addCriterion("payment_money is null");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyIsNotNull() {
            addCriterion("payment_money is not null");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyEqualTo(BigDecimal value) {
            addCriterion("payment_money =", value, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyNotEqualTo(BigDecimal value) {
            addCriterion("payment_money <>", value, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyGreaterThan(BigDecimal value) {
            addCriterion("payment_money >", value, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("payment_money >=", value, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyLessThan(BigDecimal value) {
            addCriterion("payment_money <", value, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("payment_money <=", value, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyIn(List<BigDecimal> values) {
            addCriterion("payment_money in", values, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyNotIn(List<BigDecimal> values) {
            addCriterion("payment_money not in", values, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("payment_money between", value1, value2, "payment_money");
            return (Criteria) this;
        }

        public Criteria andPayment_moneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("payment_money not between", value1, value2, "payment_money");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterion("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterion("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterion("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterion("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterion("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterion("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterion("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterion("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterion("created not between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNull() {
            addCriterion("updated is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNotNull() {
            addCriterion("updated is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedEqualTo(Date value) {
            addCriterion("updated =", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotEqualTo(Date value) {
            addCriterion("updated <>", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThan(Date value) {
            addCriterion("updated >", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterion("updated >=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThan(Date value) {
            addCriterion("updated <", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThanOrEqualTo(Date value) {
            addCriterion("updated <=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedIn(List<Date> values) {
            addCriterion("updated in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotIn(List<Date> values) {
            addCriterion("updated not in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedBetween(Date value1, Date value2) {
            addCriterion("updated between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotBetween(Date value1, Date value2) {
            addCriterion("updated not between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andPayment_timeIsNull() {
            addCriterion("payment_time is null");
            return (Criteria) this;
        }

        public Criteria andPayment_timeIsNotNull() {
            addCriterion("payment_time is not null");
            return (Criteria) this;
        }

        public Criteria andPayment_timeEqualTo(Date value) {
            addCriterion("payment_time =", value, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeNotEqualTo(Date value) {
            addCriterion("payment_time <>", value, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeGreaterThan(Date value) {
            addCriterion("payment_time >", value, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("payment_time >=", value, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeLessThan(Date value) {
            addCriterion("payment_time <", value, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeLessThanOrEqualTo(Date value) {
            addCriterion("payment_time <=", value, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeIn(List<Date> values) {
            addCriterion("payment_time in", values, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeNotIn(List<Date> values) {
            addCriterion("payment_time not in", values, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeBetween(Date value1, Date value2) {
            addCriterion("payment_time between", value1, value2, "payment_time");
            return (Criteria) this;
        }

        public Criteria andPayment_timeNotBetween(Date value1, Date value2) {
            addCriterion("payment_time not between", value1, value2, "payment_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeIsNull() {
            addCriterion("consign_time is null");
            return (Criteria) this;
        }

        public Criteria andConsign_timeIsNotNull() {
            addCriterion("consign_time is not null");
            return (Criteria) this;
        }

        public Criteria andConsign_timeEqualTo(Date value) {
            addCriterion("consign_time =", value, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeNotEqualTo(Date value) {
            addCriterion("consign_time <>", value, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeGreaterThan(Date value) {
            addCriterion("consign_time >", value, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("consign_time >=", value, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeLessThan(Date value) {
            addCriterion("consign_time <", value, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeLessThanOrEqualTo(Date value) {
            addCriterion("consign_time <=", value, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeIn(List<Date> values) {
            addCriterion("consign_time in", values, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeNotIn(List<Date> values) {
            addCriterion("consign_time not in", values, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeBetween(Date value1, Date value2) {
            addCriterion("consign_time between", value1, value2, "consign_time");
            return (Criteria) this;
        }

        public Criteria andConsign_timeNotBetween(Date value1, Date value2) {
            addCriterion("consign_time not between", value1, value2, "consign_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEnd_timeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEnd_timeEqualTo(Date value) {
            addCriterion("end_time =", value, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeGreaterThan(Date value) {
            addCriterion("end_time >", value, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeLessThan(Date value) {
            addCriterion("end_time <", value, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeIn(List<Date> values) {
            addCriterion("end_time in", values, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "end_time");
            return (Criteria) this;
        }

        public Criteria andEnd_timeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "end_time");
            return (Criteria) this;
        }

        public Criteria andShipping_nameIsNull() {
            addCriterion("shipping_name is null");
            return (Criteria) this;
        }

        public Criteria andShipping_nameIsNotNull() {
            addCriterion("shipping_name is not null");
            return (Criteria) this;
        }

        public Criteria andShipping_nameEqualTo(String value) {
            addCriterion("shipping_name =", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameNotEqualTo(String value) {
            addCriterion("shipping_name <>", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameGreaterThan(String value) {
            addCriterion("shipping_name >", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameGreaterThanOrEqualTo(String value) {
            addCriterion("shipping_name >=", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameLessThan(String value) {
            addCriterion("shipping_name <", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameLessThanOrEqualTo(String value) {
            addCriterion("shipping_name <=", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameLike(String value) {
            addCriterion("shipping_name like", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameNotLike(String value) {
            addCriterion("shipping_name not like", value, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameIn(List<String> values) {
            addCriterion("shipping_name in", values, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameNotIn(List<String> values) {
            addCriterion("shipping_name not in", values, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameBetween(String value1, String value2) {
            addCriterion("shipping_name between", value1, value2, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_nameNotBetween(String value1, String value2) {
            addCriterion("shipping_name not between", value1, value2, "shipping_name");
            return (Criteria) this;
        }

        public Criteria andShipping_codeIsNull() {
            addCriterion("shipping_code is null");
            return (Criteria) this;
        }

        public Criteria andShipping_codeIsNotNull() {
            addCriterion("shipping_code is not null");
            return (Criteria) this;
        }

        public Criteria andShipping_codeEqualTo(String value) {
            addCriterion("shipping_code =", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeNotEqualTo(String value) {
            addCriterion("shipping_code <>", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeGreaterThan(String value) {
            addCriterion("shipping_code >", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeGreaterThanOrEqualTo(String value) {
            addCriterion("shipping_code >=", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeLessThan(String value) {
            addCriterion("shipping_code <", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeLessThanOrEqualTo(String value) {
            addCriterion("shipping_code <=", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeLike(String value) {
            addCriterion("shipping_code like", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeNotLike(String value) {
            addCriterion("shipping_code not like", value, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeIn(List<String> values) {
            addCriterion("shipping_code in", values, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeNotIn(List<String> values) {
            addCriterion("shipping_code not in", values, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeBetween(String value1, String value2) {
            addCriterion("shipping_code between", value1, value2, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andShipping_codeNotBetween(String value1, String value2) {
            addCriterion("shipping_code not between", value1, value2, "shipping_code");
            return (Criteria) this;
        }

        public Criteria andMember_idIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMember_idIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMember_idEqualTo(Integer value) {
            addCriterion("member_id =", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idNotEqualTo(Integer value) {
            addCriterion("member_id <>", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idGreaterThan(Integer value) {
            addCriterion("member_id >", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("member_id >=", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idLessThan(Integer value) {
            addCriterion("member_id <", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idLessThanOrEqualTo(Integer value) {
            addCriterion("member_id <=", value, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idIn(List<Integer> values) {
            addCriterion("member_id in", values, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idNotIn(List<Integer> values) {
            addCriterion("member_id not in", values, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idBetween(Integer value1, Integer value2) {
            addCriterion("member_id between", value1, value2, "member_id");
            return (Criteria) this;
        }

        public Criteria andMember_idNotBetween(Integer value1, Integer value2) {
            addCriterion("member_id not between", value1, value2, "member_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idIsNull() {
            addCriterion("address_id is null");
            return (Criteria) this;
        }

        public Criteria andAddress_idIsNotNull() {
            addCriterion("address_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddress_idEqualTo(Integer value) {
            addCriterion("address_id =", value, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idNotEqualTo(Integer value) {
            addCriterion("address_id <>", value, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idGreaterThan(Integer value) {
            addCriterion("address_id >", value, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("address_id >=", value, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idLessThan(Integer value) {
            addCriterion("address_id <", value, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idLessThanOrEqualTo(Integer value) {
            addCriterion("address_id <=", value, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idIn(List<Integer> values) {
            addCriterion("address_id in", values, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idNotIn(List<Integer> values) {
            addCriterion("address_id not in", values, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idBetween(Integer value1, Integer value2) {
            addCriterion("address_id between", value1, value2, "address_id");
            return (Criteria) this;
        }

        public Criteria andAddress_idNotBetween(Integer value1, Integer value2) {
            addCriterion("address_id not between", value1, value2, "address_id");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("flag is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("flag is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("flag =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("flag <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("flag >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("flag >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("flag <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("flag <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("flag in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("flag not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("flag between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("flag not between", value1, value2, "flag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}